The Future

ggplot is still rough. We need to:

  • improved options for scales and geoms
  • improved legends
  • fix up facets

In [2]:
from ggplot import *
%matplotlib inline


/usr/local/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The oldnumeric module will be dropped in Numpy 1.9
  warnings.warn(_msg, ModuleDeprecationWarning)

mpld3

Output matplotlib figures as d3 charts.


In [3]:
from mpld3 import enable_notebook, save_json
enable_notebook()

p = ggplot(aes(x='price'), data=diamonds)
p + geom_histogram()


stat_bin: binwidth defaulted to range/30.
    Use 'binwidth = x' to adjust this.
Out[3]:
<ggplot: (274463717)>

In [ ]: